if [ "$ADMIN" = "TRUE" ]; then
  curl -si http://127.0.0.1:${ADMIN_PORT}/weblogic/ready  | grep "200 OK" || exit 1; 
else 
  curl -si http://127.0.0.1:${MANAGED_SERVER_PORT}/weblogic/ready | grep "200 OK" || exit 1;
fi
